let mongoose = require('mongoose');
//建立course需要的模型对象
let Course = new mongoose.Schema({
    name: String,
    classHour:Number,
    credit:String
  })
//建立集合与模型之间的关系
mongoose.model('courseModel', Course, 'course');
